<?php
/**
 * Created by PhpStorm.
 * User: Windows
 * Date: 2017/4/25
 * Time: 15:42
 */

require_once __DIR__ . '/loader.php';
use Workerman\Worker;
use \Workerman\Autoloader;

use Task\TaskWorker;


$worker = new TaskWorker("udp://0.0.0.0:8010");
$worker->name = 'TaskWorker';
$worker->count = 2;
Worker::$stdoutFile = './stdout.log';
// 如果不是在根目录启动，则运行runAll方法
if(!defined('GLOBAL_START'))
{
    Worker::runAll();
}
